<template>
  <ul>
    <li v-for="item in list" :key="item">{{ item }}</li>
  </ul>
</template>

<script >
import { reactive, onMounted } from "vue";
let start = Date.now();

export default {
  setup() {
    let list = reactive(
      Array.from(Array(100000)).map((v, i) => `这是第${i}行`)
    );

    onMounted(() => {
      console.log("耗时:" + (Date.now() - start) + "ms");
    });
    return {
      list,
    };
  },
};
</script>

<style>
</style>
